package com.ttt.radioapp_core.listeners;

import com.ttt.radioapp_core.activities.ProgramacionActivity;
import com.ttt.radioapp_core.helpers.Constants;

import android.content.Intent;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;

public class ProgramacionOnClickListener implements OnClickListener {
	Constants constants;
	public ProgramacionOnClickListener(Constants constants) {
		super();
		this.constants = constants;
	}

	@Override
	public void onClick(View v) {
		Intent intent = new Intent();
		intent.setClass(v.getContext(), ProgramacionActivity.class);
		Log.i("PEPE", constants.getUrlProgramacion());
		intent.putExtra(ProgramacionActivity.PROGRAMACION_URL, constants.getUrlProgramacion());
		v.getContext().startActivity(intent);
	}
}